import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home'
import FinanceList from '@/pages/finance/List';
import FinanceDetail from '@/pages/finance/Detail';
import RichesList from '@/pages/riches/list';
import Login from '@/pages/Login';
import Register from '@/pages/Reg';
import IborrowList from '@/pages/iborrow/list';
import IborrowApply from '@/pages/iborrow/apply';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },{
      path: '/login',
      name: 'Login',
      component: Login
    },{
      path: '/reg',
      name: 'Register',
      component: Register
    },{
      path: '/iborrow/list',
      name: 'IborrowList',
      component: IborrowList
    },{
      path: '/iborrow/apply',
      name: 'IborrowApply',
      component: IborrowApply
    },{
      path: '/finance/list',
      name: 'FinanceList',
      component: FinanceList
    },{
      path: '/finance/detail',
      name: 'FinanceDetail',
      component: FinanceDetail
    },{
      path: '/riches/list',
      name: 'RichesList',
      component: RichesList
    }
  ]
})
